package bloodfang.gui;

import java.awt.Insets;

import javax.swing.BorderFactory;
import javax.swing.JButton;

public class SlotViewButton extends JButton {
	
	private static final long serialVersionUID = 4219029168633697015L;

	public SlotViewButton(){
		//this.setBorder(BorderFactory.createLineBorder(Color.BLACK));
		this.setMargin(new Insets(0,0,0,0));
		this.setBorder(BorderFactory.createEmptyBorder());
	}
	
	public void setText(String text){
		if(text == null)
			text = "";
		super.setText(text);
		if(this.getText().equals(""))
			this.setVisible(false);
		else
			this.setVisible(true);
	}

}
